home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 52 / Amiga Format AFCD52 (Issue 136, May 2000).iso / -in_the_mag- / pdselect / wbstartup+ / install next >
Text File  |  2000-03-08  |  6KB  |  188 lines

  1. ;
  2. ; $PROJECT: WBStartup+
  3. ;
  4. ; (C) Copyright 1996 John Hughes, 1999-2000 Simon Tyrrell.  All Rights Reserved.
  5. ;
  6.  
  7.  
  8. (
  9.   (working "Installing WBStartup+")
  10.  
  11.   (message "\n\nWBStartup+ and WBStartup+Prefs\n\nare Postcardware.\n\nIf you use either of these programs, please send a postcard of your city or country to:\n\nJohn Hughes\n901 Highview Rd.\nEast Peoria, IL 61611 USA")
  12.  
  13.   (if (exists "SYS:WBStartup/WBStartup+")
  14.     ( ; UPGRADE PREVIOUS VERSION
  15.       (message "\n\nA previous version of WBStartup+ has been found.  I will upgrade your version.")
  16.     )
  17.     ( ; INSTALL FOR THE FIRST TIME
  18.       ; Moving the WBStartup files safely
  19.       (
  20.         (rename "SYS:WBStartup" "SYS:WBStartup.temp")
  21.         (makedir "SYS:WBStartup")
  22.         (rename "SYS:WBStartup.temp" "SYS:WBStartup/Enabled")
  23.       )
  24.  
  25.       ; Creating Disabled Directory
  26.       (makedir "SYS:WBStartup/Disabled")
  27.     )
  28.   )
  29.  
  30.       ; Copying icon
  31.       (copyfiles
  32.         (prompt "Copying the Enabled icon")
  33.         (source "icons/Enabled_Icon.info")
  34.         (dest "SYS:WBStartup")
  35.         (newname "Enabled.info")
  36.       )
  37.  
  38.       ; Copying icon
  39.       (copyfiles
  40.         (prompt "Copying the Disabled icon")
  41.         (source "icons/Disabled_Icon.info")
  42.         (dest "SYS:WBStartup")
  43.         (newname "Disabled.info")
  44.       )
  45.  
  46.       ; Copy WBStartup+, Prefs, and library for the appropriate OS version
  47.       (if (< (/ (getversion) 65536) 39)  ;if this is OS2.x
  48.         ; Copy WBStartup+ for OS2.x and launch.library
  49.         (
  50.           (copyfiles
  51.             (prompt "Copying the WBStartup+ Executable for OS2.x")
  52.             (help @copyfiles-help)
  53.             (source "OS2.x/WBStartup+")
  54.             (dest "SYS:WBStartup")
  55.             (infos)
  56.           )
  57.           ; install Launcher.Library to Libs:
  58.           (copylib
  59.             (prompt "Copying Launcher.library")
  60.             (help @copylib-help)
  61.             (source "libs/launcher.library")
  62.             (dest "libs:")
  63.           )
  64.         )
  65.       )
  66.      ; Copy WBStartup+, Prefs, and library for the appropriate OS version
  67.       (if (< (/ (getversion "workbench.library") 65536) 44)  ;if this is OS3.5
  68.         ; Copy WBStartup+ for OS3.5
  69.         (
  70.           (copyfiles
  71.             (prompt "Copying the WBStartup+ Executable for OS3.5")
  72.             (help @copyfiles-help)
  73.             (source "OS3.5/WBStartup+")
  74.             (dest "SYS:WBStartup")
  75.             (infos)
  76.           )
  77.  
  78.         ; Copy WBStartup+Prefs for OS3.5 users
  79.           (copyfiles
  80.             (prompt "Copying the WBStartup+Prefs Executable for OS3.x")
  81.             (help @copyfiles-help)
  82.             (source "OS3.5/WBStartup+Prefs")
  83.             (dest "SYS:Prefs")
  84.             (confirm)
  85.             (infos)
  86.           )    
  87.  
  88.           (set launch
  89.         (askbool
  90.         (prompt "Do you want to use WBStart Library?")
  91.         (help "If you have fileless icons to be launched, you want this installed.")
  92.         (choices "Yes" "No")
  93.         (default no)
  94.       ))
  95.  
  96.           ; install DosPath.Library to Libs:
  97.           (copylib
  98.             (prompt "Copying DosPath.library")
  99.             (help @copylib-help)
  100.             (source "libs/dospath.library")
  101.             (dest "libs:")
  102.           )
  103.  
  104.         )
  105.  
  106.  
  107.         (
  108.           ; else, copy WBStartup+, WBStartup+Prefs, WBStart.library, and DosPath.library for OS3.x users
  109.  
  110.           ; Copy WBStartup+ for OS3.x
  111.           (copyfiles
  112.             (prompt "Copying the WBStartup+ Executable for OS3.x")
  113.             (help @copyfiles-help)
  114.             (source "OS3.x/WBStartup+")
  115.             (dest "SYS:WBStartup")
  116.             (infos)
  117.           )
  118.           ; Copy WBStartup+Prefs for OS3.x users
  119.           (copyfiles
  120.             (prompt "Copying the WBStartup+Prefs Executable for OS3.x")
  121.             (help @copyfiles-help)
  122.             (source "OS3.x/WBStartup+Prefs")
  123.             (dest "SYS:Prefs")
  124.             (confirm)
  125.             (infos)
  126.           )
  127.           ; install WBStart.Library to Libs:
  128.           (copylib
  129.             (prompt "Copying WBStart.library")
  130.             (help @copylib-help)
  131.             (source "libs/wbstart.library")
  132.             (dest "libs:")
  133.           )
  134.           ; install DosPath.Library to Libs:
  135.           (copylib
  136.             (prompt "Copying DosPath.library")
  137.             (help @copylib-help)
  138.             (source "libs/dospath.library")
  139.             (dest "libs:")
  140.           )
  141.         )
  142.       )
  143.  
  144.       ;****************************************************************
  145.       ;Install language Catalogs
  146.  
  147.       (set def-lang 0)
  148.  
  149.       ;(complete 60) (working #lang-install-text)
  150.  
  151.       (set lang
  152.         (askoptions
  153.         (prompt "Which languages do want installed?")
  154.         (help "Checkmark the languages you want installed, and click Proceed.")
  155.         (choices "Dansk" "Deutsch" "Español" "Français" "Italiano" "Magyar" "Norsk" "Russian" "Suomi" "Svenska")
  156.         (default def-lang)
  157.       ))
  158.  
  159.       (set n 0)
  160.  
  161.       (while (set language (select n "dansk" "deutsch" "español" "français" "italiano" "magyar" "norsk" "russian" "suomi" "svenska" "") )
  162.       (
  163.         (if (IN lang n)
  164.                 (copyfiles
  165.             (source (cat "Locale/" language ".catalog" ))
  166.                         (dest (cat "LOCALE:catalogs/" language ))
  167.                         (newname "WBStartup+Prefs.catalog")
  168.                 )
  169.         )
  170.         (set n (+ n 1))
  171.       ))
  172.  
  173.       ;****************************************************************
  174.  
  175.       ; install AmigaGuide file
  176.       (copyfiles
  177.         (prompt "Copying AmigaGuide file")
  178.         (help @copyfiles-help)
  179.         (source "WBStartup+.guide")
  180.         (dest "Help:")
  181.         (confirm)
  182.       )
  183.  
  184.         (set @default-dest "SYS:WBStartup")
  185.  
  186.       (message "\n\n If you want to use WBStart library, don't forget to set the tooltype")
  187. )
  188.